package tr.edu.metu.is.mega.common.dto;

import java.util.List;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * Data structure class for schedule templates.
 * 
 */
public class ScheduleTemplateDTO extends BaseDTO {

    private static final long serialVersionUID = -7203127209819330159L;

    public static final String FIELD_DESCRIPTION = "description";

    public static final String FIELD_SHORT_NAME = "shortname";

    @NotNull
    @Size(max = 30)
    private String shortname;

    @Size(max = 100)
    private String description;

    private List<ActivityTemplateDTO> activities;

    /**
     * Default constructor.
     */
    public ScheduleTemplateDTO() {
    }

    /**
     * Returns description.
     * 
     * @return the description
     */
    public String getDescription() {
        return description;
    }

    /**
     * Sets description value.
     * 
     * @param description the description to set
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * Returns shortname.
     * 
     * @return the shortname
     */
    public String getShortname() {
        return shortname;
    }

    /**
     * Sets shortname value.
     * 
     * @param shortname the shortname to set
     */
    public void setShortname(String shortname) {
        this.shortname = shortname;
    }

    /**
     * Returns activities.
     * 
     * @return the activities
     */
    public List<ActivityTemplateDTO> getActivities() {
        return activities;
    }

    /**
     * Sets activities value.
     * 
     * @param activities the activities to set
     */
    public void setActivities(List<ActivityTemplateDTO> activities) {
        this.activities = activities;
    }

}
